#include "Core.h"


int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR pScmdline, int iCmdshow)
{
	Core* engine;
	bool result;
	
	engine = new Core();
	if(!engine)
		return 0;

	// init and run the system object.
	result = engine->init();

	if(result)
		engine->Run();

	engine->Shutdown();
	delete engine;

	return 0;
}